<template>
	<view class="user-account">
		<div class="tobg">
			<image src="/static/img/agent/addbg.png" mode=""></image>
		</div>
		<div class="user-info">
			<div class="info-item">
				<p>手机号</p>
				<span>{{myInfo.mobile}}</span>
			</div>
			<div class="info-item">
				<p>用户名称</p>
				<span>{{myInfo.nickname}}</span>
			</div>
			<div class="info-item">
				<p>用户ID</p>
				<span>{{myInfo.user_id}}</span>
			</div>
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myInfo:{}
			}
		},
		onLoad() {
			this.myInfo = uni.getStorageSync('user');
			console.log(this.myInfo, 'this.myInfo');
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.user-account {
	width: 100%;
	height: 100%;
	background: #F7F7F7;
	.tobg{
		width: 100%;
		height: 104px;
		image{
			width: 100%;
			height: 100%;
		}
	}
	.user-info{
		width: 85%;
		background: url('../../../static/img/agent/ygbg.png') no-repeat center;
		background-size: 100% 100%;
		position: absolute;
		top: 20px;
		left: calc((15% - 52px) / 2);
		padding: 26px;
		.info-item{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding-bottom: 15px;
			padding-top: 10px;
			border-bottom: 1px solid #D3EBFF;
			p{
				font-weight: 400;
				font-size: 14px;
				color: #737373;
			}
			span{
				font-weight: 400;
				font-size: 14px;
				color: #000000;
			}
		}
	}
}
</style>
